<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]) . "/SmartTuition/SmartTuition.Model"; 
// including base class, EntityWithID
require_once("$root/Models/Base/EntityWithID.php");

class Document extends EntityWithID
{
    private $name;
    private $path;
    private $comments;

    function __construct($id, $name, $path, $comments) {
        parent::__construct($id);
        $this->name = $name;
        $this->path = $path;
        $this->comments = $comments;
        $this->columns = "Name, Path, Comments";
    }

    public function getName() {
        return $this->name;
    }

    public function getPath() {
        return $this->path;
    }

    public function getComments() {
        return $this->comments;
    }

    public function getValues() {
        $str = "'" .  $this->name .  "','" . $this->path .  "','" . $this->comments . "'";
        return $str;
    }
}